/*
   Project: N|Watch
   Author: Zak Kemble, contact@zakkemble.co.uk
   Copyright: (C) 2013 by Zak Kemble
   License: GNU GPL v3 (see License.txt)
   Web: http://blog.zakkemble.co.uk/diy-digital-wristwatch/
*/

#include "config.h"
#include "menu.h"
#include "buttons.h"
#include "display.h"
#include "torch.h"


#if COMPILE_TORCH

static uint16_t strobe;

static bool btnExit(void);
static bool btnFlashRate(void);
static display_t draw(void);

void torch_open()
{
  menu_close();

  strobe = 0;
  display_setDrawFunc(draw);
  buttons_setFuncs(btnExit, btnFlashRate, btnExit);
}

static bool btnExit()
{
  return true;
}

static bool btnFlashRate()
{
  return true;
}

static display_t draw()
{
  return DISPLAY_DONE;
}

#endif
